package com.iweb.dao;

import com.common.model.Page;
import com.iweb.pojo.Admin;
import com.iweb.pojo.User;

import java.io.Serializable;
import java.util.List;

public interface AdminDao {

    void save(Admin admin)throws Exception;

    void deleteById(Serializable id)throws Exception;

    void updateById(Admin admin)throws Exception;

    List<User> findAll()throws Exception;

    Admin findById(Serializable id)throws Exception;

    Admin findUserByUsername(String username)throws Exception;

    long selectCount()throws Exception;

    List<Admin> findAll(Page page)throws Exception;
}
